package behavioralPattern.command.example01;

import java.util.Map;

/**
 * 接收者角色
 *  -- 实现具体功能
 */
public class Chef {
    public void makeFood(Order order){
        System.out.println("制作" + order.getDiningTable() + "号桌的食物");
        Map<String, Integer> foodMenu = order.getFoodMenu();
        for (String key : foodMenu.keySet()) {
            Integer value = foodMenu.get(key);
            System.out.println(value + "份" + key);
        }
        System.out.println("=========================");
    }
}
